package com.ro.common;

import com.jfinal.core.Controller;

public abstract class AbstractController extends Controller{

    protected void setSeoTitle(Controller c, String seoTitle) {
        c.setAttr("SEO_TITLE", seoTitle);
    }

    protected void setSeoKeywords(Controller c,String seoKeywords) {
        c.setAttr("SEO_KEYWORDS", seoKeywords);
    }

    protected void setSeoDescr(Controller c,String seoDescr) {
        c.setAttr("SEO_DESCR", seoDescr);
    }

    protected void setSeo(Controller controller,String setSeoTitleStr,String setSeoKeywordsStr,String setSeoDescrStr){
        setSeoTitle(controller,setSeoTitleStr);
        setSeoKeywords(controller,setSeoKeywordsStr);
        setSeoDescr(controller,setSeoDescrStr);
    }
}
